﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace JuCheap.Core.Models.System
{
    public class WorkerAddDto
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public Guid Id { get; set; }
        /// <summary>
        /// 真实姓名
        /// </summary>
        [Display(Name = "真实姓名")]
        [Required(ErrorMessage = Message.Required)]
        public string RealName { get; set; }

        [Display(Name = "所属部门")]
        [Required(ErrorMessage = Message.Required)]
        public string DepartmentId { get; set; }
        [Display(Name = "出生日期")]
        [DataType(DataType.Date)]
        [Required(ErrorMessage = "请输入日期")]
        public string Birthday { get; set; }
        [Display(Name = "证件号码")]
        public string CardNO { get; set; }
        [Display(Name = "工号")]
        public string WorkNO { get; set; }
        [Display(Name = "性别")]
        public string Gender { get; set; }
        [Display(Name = "入职日期")]
        [DataType(DataType.Date)]
        [Required(ErrorMessage = "请输入日期")]
        public string DateOfEntry { get; set; }
        [Display(Name = "备注")]
        public string Content { get; set; }
    }
}
